package com.wangzhixuan.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.wangzhixuan.model.User;
import com.wangzhixuan.model.vo.UserVo;

/**
 *
 * User 表数据库控制层接口
 *
 */
public interface UserMapper extends BaseMapper<User> {

    UserVo selectUserVoById(@Param("id") Long id);

    List<Map<String, Object>> selectUserPage(Pagination page, Map<String, Object> params);

	List<Map<String, Object>> selectBycompanyCode(Map<String,Object> paramMap);

	User getUserByPhone(String phone);

	List<Map<String, Object>> selectByLineLeaderCompanyCode(
			Map<String, Object> paramMap);

	List<Map<String, Object>> selectcontactByCompanyCode(
			Map<String, Object> paramMap);

	List<Map<String, Object>> selectByUserTypecompanyCode(
			Map<String, Object> paramMap);

	List<Map<String, Object>> selectLineOwnerList(String companyCode);

	List<Map<String, Object>> selectKeeperList(String companyCode);

	Map<String, Object> selectUserById(Integer userId);

	List<Map<String, Object>> selectNoSignList(String companyCode);

	Integer selectCompanyPeople(String companyCode);

	List<Map<String, Object>> selectContacts();

	List<Map<String, Object>> selectByUserIdArr(Map<String,Object> userArr);

	List<String> selectPhoneByUserIdArr(Map<String, Object> paramMap);
	
	Map<String,Object> selectUserDetl(@Param("userId") Integer userId);
	
	List<Map<String,Object>> selectUserGroup(@Param("value")Integer userId);
	
	Integer selectByUserName(@Param("userName")String userName);

	List<String> selectAllPhone();
}